import request from '@/utils/request'


export function emergencyResourcesList(data) { //列表
  return request({
    url: '/project-quality/api/dynamicInfo/page',
    method: 'post',
    data,
  })
}

export function emergencyResourcesAdd(data) { //新增
  return request({
    url: '/project-quality/api/dynamicInfo/add',
    method: 'post',
    data
  })
}
export function emergencyResourcesEdit(data) { //编辑
  return request({
    url: '/project-quality/api/dynamicInfo/edit',
    method: 'post',
    data
  })
}


export function emergencyResourcesDelete(id) { //删除
  return request({
    url: '/project-quality/api/dynamicInfo/del/' + id,
    method: 'get',
  })
}


export function emergencyResourcesDetail(id) { //详情
  return request({
    url: '/project-quality/api/dynamicInfo/' + id,
    method: 'get',
  })
}
export function emergencyResourcesExport(data) { //导出
  return request({
      url: '/project-quality/api/dynamicInfo/export',
      responseType: 'arraybuffer',
      method: 'POST',
      data,
  })
}

export function emergencyResourcesFacilitiesId(id) { //通过设施id查询模板
  return request({
    url: '/project-quality/api/dynamicInfo/f/' + id,
    method: 'get',
  })
}






//首页详情配置维护
export function trendsList(data) { //列表
  return request({
    url: '/project-quality/api/resourcesBaseInfo/page',
    method: 'post',
    data,
  })
}
export function trendsAdd(data) { //新增
  return request({
    url: '/project-quality/api/resourcesBaseInfo/add',
    method: 'post',
    data
  })
}
export function trendsEdit(data) { //编辑
  return request({
    url: '/project-quality/api/resourcesBaseInfo/edit',
    method: 'post',
    data
  })
}
export function trendsDelete(data) { //删除
  return request({
    url: '/project-quality/api/resourcesBaseInfo/del',
    method: 'post',
    data
  })
}
export function trendsDetail(data) { //详情
  return request({
    url: '/project-quality/api/resourcesBaseInfo/queryOne',
    method: 'post',
    data
  })
}

